#ifndef _ORDER_HPP_
#define _ORDER_HPP_

#include <ostream>

#include "Types.hpp"

namespace FeedHandler
{
	struct Order
	{
		enum Side
		{
			Buy = 'B',
			Sell = 'S'
		};

		uint32 id;
		Side side;
		uint32 quantity;
		double price;
	};

  bool operator<(const Order & lhs, const Order & rhs);
}

std::ostream & operator<<(std::ostream & os, const FeedHandler::Order & order);

#endif // _ORDER_HPP_
